package com.jk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.po.TravelAreaPO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HomePageDao extends BaseMapper<TravelAreaPO> {
    @Select(value = "SELECT * FROM (SELECT * FROM travel_area ta left join area a on ta.taid = a.aid ORDER BY RAND() LIMIT 10)a ORDER BY arealevel DESC")
    List<TravelAreaPO> queryHappyPlay();
}
